{* load lang file *}
{dynamic}
	{config_load file="lang`$smarty.const.PLANG`.txt" section="entry"}
{/dynamic}
{* the dynamic tag is neccessary such that these block of the template are not cached *}
<div class="entry">
      <h3>{$data.subject}</h3>
	  {if $data.image}<img src="{$SERVER_ROOT}thumb/{$data.id}/" align="left" hspace="10" vspace="4" alt="Icon" />{/if}

      {$data.content}

	  <p class="posted">
	    <span class="date">{$data.intime|date_format:'%b. %d, %Y'}</span>
	    
	    {if $data.keywords}
		    <br />
		    Posted In:
            {foreach from=$data.keywords item=keyword name=myKeys}
                {if not $smarty.foreach.myKeys.last}
                    <a href="{$SERVER_ROOT}keyword/{$keyword.link}/">{$keyword.word}</a>,
                {else}
                    <a href="{$SERVER_ROOT}keyword/{$keyword.link}/">{$keyword.word}</a>
                {/if}
            {/foreach}
	    {/if}

        
      
	  {dynamic}
		  {if $smarty.session.admin}
			  <br /> <a href="{$SELF}delete/" OnClick="return confirmLink(this,'{#youSure#}');">{#delete#}</a> : <a href="{$SELF}edit/">{#edit#}</a>
		  {/if}
	  {/dynamic}
	  </p>
</div>

<hr class="hide" />

{include file="comments.htm"}